#include <stdio.h>

int main(int argc, char *argv[]) {

    double a = 0, b = 0, c = 0, d = 0;
    for (int i = 1; i <= 100; i++)
    {
        a += i;
    }

    for (int i = 1; i <= 50; i++)
    {
        b += i * i;
    }

    for (double i = 1; i <= 10; i++)
    {
        c += 1 / i;
    }

    d = a + b + c;

    printf("%.6lf",d);

    return 0;
}